<script setup>
import { ref } from 'vue'
import { userGetAccountInfoService } from '@/api/user'
const form = ref({})
const getUserInfo=async()=>
{
 const res= await userGetAccountInfoService(1)
 form.value=res.data.data
 console.log('个人信息',res.data.data);
}
getUserInfo()
</script>
<template>
  <div>
    <h1 class="title">个人信息</h1>
    <el-form :model="form" label-width="auto" style="max-width: 300px">
      <el-form-item>
       
          <img class="user-img" :src="form.avatar"  />
          <!-- <el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon> -->
          <!-- <el-avatar class="header" size="large"></el-avatar> -->
          <br>
      </el-form-item>
      <el-form-item label="昵称:">
        <span class="item1">{{ form.nickname }}</span>
      </el-form-item>
      <el-form-item label="手机号:" class="item2">
        <span class=item2-span>{{form.phoneNumber}}</span>
      </el-form-item>
      <el-form-item class="item3">
        <h3>经营地址</h3>
      </el-form-item>
        <h3 class="item-h3">省/直辖市
          <span v-for="v in 11" :key="v">&emsp;</span>市/市区</h3>
        <br>
        <h3 class="item-h2">福建省&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&ensp;南平市</h3>
        <h3 class="item-h3">详细地址&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;邮政编码</h3>
        <br>
        <h3 class="item-h2">武夷学院&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&ensp;354300</h3>
    </el-form>
  </div>
</template>
<style lang="scss" scoped>

.user-img{
  margin-left: 50px;
  width:100px;
  height:100px;
  border-radius:100%;
}

.title {
  color: #27ba9b;
  font-size: 20px;
  font-family: "楷体","楷体_GB2312";
  .avatar {
    margin-left: 100px;
}
}
.item1 {
    font-size: 18px;
  }
.item2 {
  padding-top: 30px;
  .item2-span {
    font-size: 18px;
  }
}
.item3 {
  padding-top: 30px;
}
.item-h3 {
  font-size: 13px;
  color: #a4b7b3;
}
.item-h2 {
  font-size: 13px;
  margin-bottom: 30px;
}
</style>